import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif




import back from 'tool/back.js';
import Jump from 'tool/jump.js';
import Units from 'tool/units.js';

//全局变量 名为 $jump
Vue.prototype.$back = back;
//全局变量 名为 $jump
Vue.prototype.$jump = new Jump();
//全局变量 名为 $com
Vue.prototype.$com = new Units();

// main.js
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 导入并挂载全局的分享方法
import share from '@/tool/share.js'
Vue.mixin(share)